<?php


namespace app\model;


use think\Model;

class Friends extends Model
{
    public function profile(){
        return $this->hasOne(User::class,'userId','friend_id');
    }
}